package org.rc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class RoomDev {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private Long roomId;

    private Integer devType;

    private Long devId;

    public static RoomDev getInstance(Long roomId,Integer devType,Long devId){
        RoomDev roomDev = new RoomDev();
        roomDev.setRoomId(roomId);
        roomDev.setDevId(devId);
        roomDev.setDevType(devType);
        return roomDev;
    }
}
